#ifndef __PREFS_STM32_CONFIG_H__
#define __PREFS_STM32_CONFIG_H__

#if defined(STM32F0xx)
    #include "stm32f0xx_hal.h"

#elif defined(STM32F1xx)
    #include "stm32f1xx_hal.h"

#elif defined(STM32F2xx)
    #include "stm32f2xx_hal.h"

#elif defined(STM32F3xx)
    #include "stm32f3xx_hal.h"

#elif defined(STM32F4xx)
    #include "stm32f4xx_hal.h"

#elif defined(STM32F7xx)
    #include "stm32f7xx_hal.h"

#elif defined(STM32H7xx)
    #include "stm32h7xx_hal.h"

#elif defined(STM32L0xx)
    #include "stm32l0xx_hal.h"

#elif defined(STM32L1xx)
    #include "stm32l1xx_hal.h"

#elif defined(STM32L4xx)
    #include "stm32l4xx_hal.h"

#elif defined(STM32G0xx)
    #include "stm32g0xx_hal.h"

#elif defined(STM32G4xx)
    #include "stm32g4xx_hal.h"

#elif defined(STM32WBxx)
    #include "stm32wbxx_hal.h"

#elif defined(STM32WBAxx)
    #include "stm32wbaxx_hal.h"

#elif defined(STM32WLxx)
    #include "stm32wlxx_hal.h"

#elif defined(STM32U0xx)
    #include "stm32u0xx_hal.h"

#elif defined(STM32U5xx)
    #include "stm32u5xx_hal.h"

#elif defined(STM32C0)
    #include "stm32c0xx_hal.h"

#else
    #error "Unsupported STM32 series. Please define the correct STM32 series."
#endif

#endif // __PREFS_STM32_CONFIG_H__
